package com.glut.campusrepair.entity;

import java.util.ArrayList;
import java.util.List;
import java.util.Date;

/**
* 维修进度表 Example
*
* @author sanminzhi
* @since 2024-07-19 11:26
*/
public class RepairTasksExample {

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RepairTasksExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTaskIdIsNull() {
            addCriterion("task_id is null");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNotNull() {
            addCriterion("task_id is not null");
            return (Criteria) this;
        }

        public Criteria andTaskIdEqualTo(Integer value) {
            addCriterion("task_id =", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotEqualTo(Integer value) {
            addCriterion("task_id <>", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThan(Integer value) {
            addCriterion("task_id >", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("task_id >=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThan(Integer value) {
            addCriterion("task_id <", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThanOrEqualTo(Integer value) {
            addCriterion("task_id <=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdIn(List<Integer> values) {
            addCriterion("task_id in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotIn(List<Integer> values) {
            addCriterion("task_id not in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdBetween(Integer value1, Integer value2) {
            addCriterion("task_id between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotBetween(Integer value1, Integer value2) {
            addCriterion("task_id not between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdIsNull() {
            addCriterion("failure_repair_id is null");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdIsNotNull() {
            addCriterion("failure_repair_id is not null");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdEqualTo(Integer value) {
            addCriterion("failure_repair_id =", value, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdNotEqualTo(Integer value) {
            addCriterion("failure_repair_id <>", value, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdGreaterThan(Integer value) {
            addCriterion("failure_repair_id >", value, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("failure_repair_id >=", value, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdLessThan(Integer value) {
            addCriterion("failure_repair_id <", value, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdLessThanOrEqualTo(Integer value) {
            addCriterion("failure_repair_id <=", value, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdIn(List<Integer> values) {
            addCriterion("failure_repair_id in", values, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdNotIn(List<Integer> values) {
            addCriterion("failure_repair_id not in", values, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdBetween(Integer value1, Integer value2) {
            addCriterion("failure_repair_id between", value1, value2, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andFailureRepairIdNotBetween(Integer value1, Integer value2) {
            addCriterion("failure_repair_id not between", value1, value2, "failureRepairId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdIsNull() {
            addCriterion("repair_personnel_id is null");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdIsNotNull() {
            addCriterion("repair_personnel_id is not null");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdEqualTo(Integer value) {
            addCriterion("repair_personnel_id =", value, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdNotEqualTo(Integer value) {
            addCriterion("repair_personnel_id <>", value, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdGreaterThan(Integer value) {
            addCriterion("repair_personnel_id >", value, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("repair_personnel_id >=", value, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdLessThan(Integer value) {
            addCriterion("repair_personnel_id <", value, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdLessThanOrEqualTo(Integer value) {
            addCriterion("repair_personnel_id <=", value, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdIn(List<Integer> values) {
            addCriterion("repair_personnel_id in", values, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdNotIn(List<Integer> values) {
            addCriterion("repair_personnel_id not in", values, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdBetween(Integer value1, Integer value2) {
            addCriterion("repair_personnel_id between", value1, value2, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andRepairPersonnelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("repair_personnel_id not between", value1, value2, "repairPersonnelId");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeIsNull() {
            addCriterion("assigned_time is null");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeIsNotNull() {
            addCriterion("assigned_time is not null");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeEqualTo(Date value) {
            addCriterion("assigned_time =", value, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeNotEqualTo(Date value) {
            addCriterion("assigned_time <>", value, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeGreaterThan(Date value) {
            addCriterion("assigned_time >", value, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("assigned_time >=", value, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeLessThan(Date value) {
            addCriterion("assigned_time <", value, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeLessThanOrEqualTo(Date value) {
            addCriterion("assigned_time <=", value, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeIn(List<Date> values) {
            addCriterion("assigned_time in", values, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeNotIn(List<Date> values) {
            addCriterion("assigned_time not in", values, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeBetween(Date value1, Date value2) {
            addCriterion("assigned_time between", value1, value2, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAssignedTimeNotBetween(Date value1, Date value2) {
            addCriterion("assigned_time not between", value1, value2, "assignedTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeIsNull() {
            addCriterion("acceptance_time is null");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeIsNotNull() {
            addCriterion("acceptance_time is not null");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeEqualTo(Date value) {
            addCriterion("acceptance_time =", value, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeNotEqualTo(Date value) {
            addCriterion("acceptance_time <>", value, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeGreaterThan(Date value) {
            addCriterion("acceptance_time >", value, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("acceptance_time >=", value, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeLessThan(Date value) {
            addCriterion("acceptance_time <", value, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeLessThanOrEqualTo(Date value) {
            addCriterion("acceptance_time <=", value, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeIn(List<Date> values) {
            addCriterion("acceptance_time in", values, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeNotIn(List<Date> values) {
            addCriterion("acceptance_time not in", values, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeBetween(Date value1, Date value2) {
            addCriterion("acceptance_time between", value1, value2, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andAcceptanceTimeNotBetween(Date value1, Date value2) {
            addCriterion("acceptance_time not between", value1, value2, "acceptanceTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeIsNull() {
            addCriterion("completion_time is null");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeIsNotNull() {
            addCriterion("completion_time is not null");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeEqualTo(Date value) {
            addCriterion("completion_time =", value, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeNotEqualTo(Date value) {
            addCriterion("completion_time <>", value, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeGreaterThan(Date value) {
            addCriterion("completion_time >", value, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("completion_time >=", value, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeLessThan(Date value) {
            addCriterion("completion_time <", value, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeLessThanOrEqualTo(Date value) {
            addCriterion("completion_time <=", value, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeIn(List<Date> values) {
            addCriterion("completion_time in", values, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeNotIn(List<Date> values) {
            addCriterion("completion_time not in", values, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeBetween(Date value1, Date value2) {
            addCriterion("completion_time between", value1, value2, "completionTime");
            return (Criteria) this;
        }

        public Criteria andCompletionTimeNotBetween(Date value1, Date value2) {
            addCriterion("completion_time not between", value1, value2, "completionTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoIsNull() {
            addCriterion("completion_photo is null");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoIsNotNull() {
            addCriterion("completion_photo is not null");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoEqualTo(String value) {
            addCriterion("completion_photo =", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoNotEqualTo(String value) {
            addCriterion("completion_photo <>", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoGreaterThan(String value) {
            addCriterion("completion_photo >", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("completion_photo >=", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoLessThan(String value) {
            addCriterion("completion_photo <", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoLessThanOrEqualTo(String value) {
            addCriterion("completion_photo <=", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoLike(String value) {
            addCriterion("completion_photo like", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoNotLike(String value) {
            addCriterion("completion_photo not like", value, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoIn(List<String> values) {
            addCriterion("completion_photo in", values, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoNotIn(List<String> values) {
            addCriterion("completion_photo not in", values, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoBetween(String value1, String value2) {
            addCriterion("completion_photo between", value1, value2, "completionPhoto");
            return (Criteria) this;
        }

        public Criteria andCompletionPhotoNotBetween(String value1, String value2) {
            addCriterion("completion_photo not between", value1, value2, "completionPhoto");
            return (Criteria) this;
        }

    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

}
